﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="prueba.aspx.cs" Inherits="Eventos_prueba" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">


<script src="../Scripts/jquery-1.9.1.min.js" type = "text/javascript"></script>

<script  type = "text/javascript">
    $.ajax
                ({
                    type: "POST",
                    cache: false,
                    url: "prueba.aspx/HolaMundo",
                    data: '{}',
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    error: function (data) { alert("fallo"); },
                    success: function (data) {alert("Hola"); }
                });
</script>


</asp:Content>

